<%@ page import="baratopradedeu.Cliente" %>

<html>
    <head>
         <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<meta name="layout" content="main" />  
         <title>User Login</title>
    </head>
    <body>
        <div class="body">
           <g:form action="doLogin" method="post">
               <div class="dialog">
     <h2>Bem-vindo ao baratopradedeu.com!</h2>
	 <br />
	 <p>Para realizar um pedido, efetue login:</p>
	 <br />
                <table  class="userForm">
                  <tr class='prop'>
                      <td valign='top' style='text-align:left;' width='20%'>
                          <label for='email'>Email:</label>
                      </td>
                      <td valign='top' style='text-align:left;' width='80%'>
                          <input id="email" type='text' name='email' value='${user?.email}' />
					  </td>
                  </tr>
                  <tr class='prop'>
                      <td valign='top' style='text-align:left;' width='20%'>
                          <label for='password'>Password:</label>
                      </td>
                      <td valign='top' style='text-align:left;' width='80%'>
                          <input id="password" type='password' name='password'
                                 value='${user?.password}' />
                      </td>
                  </tr>
                       
               </table>    
               </div>
			   <g:hiddenField name="c" value="${params.c}" />
					<g:hiddenField name="a" value="${params.a}" />
               <div class="buttons">
					
					<span class="button">
						<g:actionSubmit class="edit" controller="cliente" action="doLogin"
							value="${message(code: 'default.button.login.label', default: 'Login')}" />
					</span>
					
					<span class="menuButton">
						<g:link class="create" controller="cliente" action="create" >Novo Cliente?</g:link>
					</span>
               </div>
			   
            </g:form>
        </div>
    </body>
</html>
       